<template>
  <div>
    <p>register</p>
    <input type="text" v-model="username">
    <input type="text" v-model="pwd">
  </div>
</template>

<script>
export default {
  data() {
    return {
      username: '',
      pwd: ''
    }
  },
  created() {
    console.log('reg-重返战场');
  },
  beforeDestroy() {
    console.log('reg-我挂了');
  },
  activated() {
    // 激活时触发
    console.log('reg-11');
  },
  deactivated() {
    // 取消激活时触发
    console.log('reg-22');
  }
}
</script>

<style>

</style>